|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.SerializeHandling
public class SerializeHandling
This is a utility class to handle writing and
reading Serializable objects into/from a file.
| Constructor Summary | |
|---|---|
SerializeHandling()
|
|
| Method Summary | |
|---|---|
static java.io.Serializable |
readFromDisc(java.lang.String path)
Reads an Object from the "path" in the disc. |
static boolean |
writeToDisc(java.io.Serializable data,
java.lang.String path)
Writes the data into disc, in a new file under the path given. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializeHandling()
| Method Detail |
|---|
public static boolean writeToDisc(java.io.Serializable data,
java.lang.String path)
data - the object to be saved into a new file.path - the final path (including the name of the file which will
be created).
public static java.io.Serializable readFromDisc(java.lang.String path)
path - the path where the object is saved in the disc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||